<?php

require ( "sphinxapi.php" );
$cl = new SphinxClient ();
$cl->SetServer ( "127.0.0.1", 9312 );
$cl->SetConnectTimeout ( 1 );
$cl->SetArrayResult ( true );
$cl->SetWeights ( array ( 100, 1 ) );
$cl->SetMatchMode ( SPH_MATCH_ANY );

$res = $cl->Query ( "com", "mysql" );

var_dump($res);